Automattic\Jetpack\Publicize\REST_Controller S

Total Complexity 47
Dependencies 8
Dependents 3
Total lines 667
Lines of code 425
Logical lines of code 129
Comment lines 154
Methods 21
Properties 1

Methods 21

Method Rating Maintainability Complexity Lines of code
register_rest_routes()
A
34 1 134
update_publicize_connection()
S
49 5 34
create_publicize_connection()
S
47 4 39
make_proper_response()
S
58 5 15
update_post_shares()
S
57 4 15
update_dismissed_notices()
S
59 4 14
get_publicize_connections()
S
61 3 13
get_social_product_info()
S
56 2 19
manage_connection_permission_check()
S
64 3 9
update_connection_permission_check()
S
66 3 9
get_post_share_status()
S
63 2 11
get_jetpack_social_connections_schema()
S
54 1 23
share_post()
S
55 1 22
get_dismiss_notice_endpoint_schema()
S
55 1 21
get_jetpack_social_connections_update_schema()
S
57 1 18
get_blog_id()
S
79 2 3
delete_publicize_connection()
S
62 1 11
get_publicize_connection_test_results()
S
69 1 6
require_author_privilege_callback()
S
80 1 3
require_admin_privilege_callback()
S
80 1 3
__construct()
S
81 1 3